import request from "../../request";

export default {
  demo () {
    return request({
      method: 'get',
      url: '/demo',
    })
  },
  dict () {
    return request({
      method: 'get',
      url: '/dict',
    })
  },
  getOptions () {
    return new Promise(resolve => {
      setTimeout(() => {
        resolve([
          { label: '男', value: 'man' },
          { label: '女', value: 'woman' }
        ])
      }, 1000)
    })
  },
  submit (data) {
    return request({
      method: 'post',
      url: '/submit',
      data
    })
  },
}